<template>
  <div class="music-progress van-progress">
    <div class="music-progress__inner" :style="{width: percentage + '%'}" />
  </div>
</template>

<script>
export default {
  name: 'VanProgress',
  props: {
    percentage: {
      type: Number,
      required: true
    }
  }
}
</script>

<style lang="less">
.music-progress {
  position: relative;
  height: 8px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;

  &__inner {
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    background-color: @primary;
    width: 10%;
  }
}
</style>
